package com.tengju.data.infrastructure.repository.clickhouse.convert;

import com.tengju.data.domain.model.clickhouse.DwsUserDominationRelationPerformanceObjective;
import com.tengju.data.domain.model.user.UserIdCode;
import com.tengju.data.infrastructure.persistence.mybatis.dataobject.DwsUserDominationRelationPerformanceObjectiveDO;

/**
 * @author: 李大仙
 * @date: 2021/5/21 10:42 上午
 */
public class DwsUserDominationRelationPerformanceObjectiveConvert {
    public static DwsUserDominationRelationPerformanceObjective convert(DwsUserDominationRelationPerformanceObjectiveDO dwsUserDominationRelationPerformanceObjectiveDO) {
        if (dwsUserDominationRelationPerformanceObjectiveDO == null) {
            return null;
        }
        return new DwsUserDominationRelationPerformanceObjective(
                new UserIdCode(dwsUserDominationRelationPerformanceObjectiveDO.getDominationIdCode()),
                dwsUserDominationRelationPerformanceObjectiveDO.getGmv(),
                dwsUserDominationRelationPerformanceObjectiveDO.getNewEcNum(),
                dwsUserDominationRelationPerformanceObjectiveDO.getNewCityStarOneNum(),
                dwsUserDominationRelationPerformanceObjectiveDO.getNewCityStarTwoNum(),
                dwsUserDominationRelationPerformanceObjectiveDO.getNewCityStarThreeNum(),
                dwsUserDominationRelationPerformanceObjectiveDO.getNewCityStarFourNum(),
                dwsUserDominationRelationPerformanceObjectiveDO.getNewDealerNum(),
                dwsUserDominationRelationPerformanceObjectiveDO.getNewServiceNum(),
                dwsUserDominationRelationPerformanceObjectiveDO.getNewSvipNum(),
                dwsUserDominationRelationPerformanceObjectiveDO.getNewVvipNum(),
                dwsUserDominationRelationPerformanceObjectiveDO.getNewVipNum());
    }
}
